package com.heima.wemedia.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.dtos.WmSensitiveListDto;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * <p>
 * 敏感词信息表 服务类
 * </p>
 *
 * @author zqc
 * @since 2024-08-21
 */
public interface IWmSensitiveService extends IService<WmSensitive> {
    /**
     * 敏感词分页查询
     * @param dto
     * @return
     */
    PageResponseResult listSensitive(WmSensitiveListDto dto);

    /**
     * 敏感词新增
     * @param dto
     * @return
     */
    ResponseResult saveSensitive(WmSensitiveDto dto);

    /**
     * 修改敏感词
     * @param dto
     * @return
     */
    ResponseResult updateSensitive(WmSensitiveDto dto);

    ResponseResult deleteByid(Integer id);
}
